package wxshop.api.user.model;

import java.util.Arrays;

/**
 * Created by 121874694@qq.com on 2018/3/5.
 */
public class WxUnionID {
	private String openid;
	private String nickname;
	private int sex;
	private String city;
	private String country;
	private String province;
	private String language;
	private String headimgurl;
	private int subscribe_time;
	private String unionid;
	
	public WxUnionID () {
	}
	
	public WxUnionID (String openid, String nickname, int sex, String city, String country, String province, String language, String headimgurl, int subscribe_time, String unionid) {
		this.openid = openid;
		this.nickname = nickname;
		this.sex = sex;
		this.city = city;
		this.country = country;
		this.province = province;
		this.language = language;
		this.headimgurl = headimgurl;
		this.subscribe_time = subscribe_time;
		this.unionid = unionid;
	}
	
	public String getOpenid () {
		return openid;
	}
	
	public void setOpenid (String openid) {
		this.openid = openid;
	}
	
	public String getNickname () {
		return nickname;
	}
	
	public void setNickname (String nickname) {
		this.nickname = nickname;
	}
	
	public int getSex () {
		return sex;
	}
	
	public String getSexs() {
		if (sex==1) {
			return "男";
		} else {
			return "女";
		}
	}
	
	public void setSex (int sex) {
		this.sex = sex;
	}
	
	public String getCity () {
		return city;
	}
	
	public void setCity (String city) {
		this.city = city;
	}
	
	public String getCountry () {
		return country;
	}
	
	public void setCountry (String country) {
		this.country = country;
	}
	
	public String getProvince () {
		return province;
	}
	
	public void setProvince (String province) {
		this.province = province;
	}
	
	public String getLanguage () {
		return language;
	}
	
	public void setLanguage (String language) {
		this.language = language;
	}
	
	public String getHeadimgurl () {
		return headimgurl;
	}
	
	public void setHeadimgurl (String headimgurl) {
		this.headimgurl = headimgurl;
	}
	
	public int getSubscribe_time () {
		return subscribe_time;
	}
	
	public void setSubscribe_time (int subscribe_time) {
		this.subscribe_time = subscribe_time;
	}
	
	public String getUnionid () {
		return unionid;
	}
	
	public void setUnionid (String unionid) {
		this.unionid = unionid;
	}
	
	@Override
	public String toString () {
		return "WxUnionID{" +
				"openid='" + openid + '\'' +
				", nickname='" + nickname + '\'' +
				", sex=" + sex +
				", city='" + city + '\'' +
				", country='" + country + '\'' +
				", province='" + province + '\'' +
				", language='" + language + '\'' +
				", headimgurl='" + headimgurl + '\'' +
				", subscribe_time=" + subscribe_time +
				", unionid='" + unionid + '\'' +
				'}';
	}
}
